PExecuteText(const char * script);
A string containing a PageMaker script statement.This class is somewhat unique, because it can execute other commands and queries. You can use PExecuteText to provide dynamic behavior that cannot be achieved directly with command objects.
Although you can execute query script statements, there is no way to obtain the results, so from a practical viewpoint they are worthless. Thus, this class is used mostly just to execute a series of commands.
For more information about PageMaker scripting, refer to the PageMaker Scripting Guide.
Example.
// This is equivalent to PNew(5);
char * script = "new 5";
PExecuteText(script);
Comments or suggestions? Contact Adobe Developer Support